<?php

namespace Plugins\WebSite;

use App\Util\PluginsInstallHelper;

class Install
{
    public static function run(): void
    {
        // 安装时需要的额外操作

        PluginsInstallHelper::addMenu(
            title: '站点页面设置',
            route: '/admin/plugins/web-site/page',
            icon: 'Document',
            parent: 0,
            sort: 1
        );

        PluginsInstallHelper::addResource(__DIR__ . '/resource/grapes.min.css', '/webSite/grapes.min.css');
        PluginsInstallHelper::addResource(__DIR__ . '/resource/grapes.min.js', '/webSite/grapes.min.js');
    }
}